﻿/* ***** BEGIN LICENSE BLOCK *****
 * Version: MPL 1.1
 *
 * The contents of this file are subject to the Mozilla Public License
 * Version 1.1 (the "License"); you may not use this file except in
 * compliance with the License. You may obtain a copy of the License at
 * http://www.mozilla.org/MPL/
 *
 * Software distributed under the License is distributed on an "AS IS"
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
 * License for the specific language governing rights and limitations
 * under the License.
 *
 * The Original Code is tyzoh.jp code.
 *
 * The Initial Developer of the Original Code is Kazutaka Kurihara.
 * Portions created by the Initial Developer are Copyright (C) 2007
 * the Initial Developer. All Rights Reserved.
 *
 * Contributor(s):
 *
 * ***** END LICENSE BLOCK ***** */
using System;
using System.Collections;
using System.Xml;
using System.Drawing;

namespace Qurihara
{
	/// <summary>
	/// Presentation の概要の説明です。
	/// </summary>
	public class Presentation
	{
		//private Size slideSize;
		//private System.Windows.Forms.Control parentControl;
		private Slide currentSlide;
		
		public FigureElementList BackGroundElementList = null;
		public FigureElementList ForeGroundElementList = null;
		
		public Presentation(Size ss,System.Windows.Forms.Control parentCont)//,string defaultBGFileName)
		{
            //slideSize = ss;
            //parentControl = parentCont;
            //currentSlide = new Slide(slideSize,parentControl);
            currentSlide = new Slide(ss,parentCont);

			BackGroundElementList = new FigureElementList();
			ForeGroundElementList = new FigureElementList();
		}
     
		public Slide CurrentSlide
		{
			get{return currentSlide;}
		}

		public void draw(Graphics g,bool showNoEdittingElement)
		{
			//if (backGroundImageElement != null ) backGroundImageElement.draw(g);
			if (BackGroundElementList != null ) BackGroundElementList.draw(g,true);
			currentSlide.draw(g,showNoEdittingElement);
			if (ForeGroundElementList != null) ForeGroundElementList.draw(g,true);
		}

	}
}
